/*
 * @Author: Pabin <pabin_pluto@foxmail.com>
 * @Date: 2024-02-28 22:50:49
 * @LastEditors: Pabin <pabin_pluto@foxmail.com>
 * @LastEditTime: 2024-03-30 14:59:32
 * @FilePath: \mcu\project\main.c
 * @Description: 
 * 
 * Copyright (c) 2024 by Pabin, All Rights Reserved. 
 */

#include "tiva_sys.h"
#include "includes.h"
char xtt[100];
int main(void)
{
  SysCtlClockSet(SYSCTL_SYSDIV_2_5 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN |SYSCTL_XTAL_16MHZ);//80MHz
	//mcu初始化
	mcuInit();
	control_init();
	OLED_Init();
  modelctrl(0.3,0,1,1);
	modelctrl(0.3,0,-1,1);
	for(;;)
	{
		sprintf(xtt,"l %d,r %d ld %d,rd %d\r\n",LeftMT.PVreality,RightMT.PVreality,LeftMT.PPreality,RightMT.PPreality);
		OLED_ShowString(0,0,(uint8_t*)xtt,16);	 
		Usart0_txpacket((uint8_t*)xtt);
		STALED_STA(stactr);
	}
}
